<?php
namespace app\admin\model;
use think\Model;
use think\facade\Db;
class AuthAdmin extends Model
{
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $pk = 'id';
	
	
    public function getInfo($admin_id){
        $info = AuthAdmin::where('id',$admin_id)->find();
        return $info;
    }
	
	static function add($data){
		$this->save($data);
		return $this->id;
	}

}
